﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var auditData = Jxstar.findComboData('audit');

	var cols = [
	{col:{header:'记录状态', width:81, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'pur_one_result__auditing',type:'string'}},
	{col:{header:'采购单号', width:100, sortable:true}, field:{name:'pur_one_result__apply_code',type:'string'}},
	{col:{header:'项目编号', width:100, sortable:true}, field:{name:'pur_one_result__project_code',type:'string'}},
	{col:{header:'项目名称', width:216, sortable:true}, field:{name:'pur_one_result__project_name',type:'string'}},
	{col:{header:'项目预算金额(万元)', width:140, sortable:true, renderer:JxUtil.formatNumber(6)}, field:{name:'pur_one_result__project_money',type:'float'}},
	{col:{header:'主管部门', width:100, sortable:true}, field:{name:'pur_one_result__dept_name',type:'string'}},
	{col:{header:'产品名称', width:142, sortable:true}, field:{name:'pur_one_result__product_name',type:'string'}},
	{col:{header:'型号规格', width:100, sortable:true}, field:{name:'pur_one_result__product_model',type:'string'}},
	{col:{header:'最终价格', width:100, sortable:true}, field:{name:'pur_one_result__last_price',type:'string'}},
	{col:{header:'生产日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'pur_one_result__product_date',type:'date'}},
	{col:{header:'谈判时间', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'pur_one_result__say_time',type:'date'}},
	{col:{header:'谈判地点', width:100, sortable:true}, field:{name:'pur_one_result__say_adress',type:'string'}},
	{col:{header:'谈判意见', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__say_sugg',type:'string'}},
	{col:{header:'谈判参与人员', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__join_person',type:'string'}},
	{col:{header:'谈判结论', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__say_result',type:'string'}},
	{col:{header:'备注', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__memo',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__result_id',type:'string'}},
	{col:{header:'采购单ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__apply_id',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__project_id',type:'string'}},
	{col:{header:'部门ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_result__dept_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'pur_one_result'
	};
	
	
		
	return new Jxstar.GridNode(config);
}